package IC.lir.Instrunction;

public class ArrayLength extends Instruction {

	private Data _returnRegister;
	private Data _object;
	
	private void Inizialize (Data object, Data returnRegister)
	{
		_returnRegister = returnRegister;
		_object = object;
	}
	
	public ArrayLength(VaribleMemory obj, Register retRegister) { Inizialize(obj, retRegister); }
	public ArrayLength(Register obj, Register retRegister) { Inizialize(obj, retRegister); }
	
	public String toString() 
	{ 
		return String.format("ArrayLength %s, %s", _object.toString(), _returnRegister.toString()); 
	}
}
